#ifndef SCROLLAREA_H
#define SCROLLAREA_H

#include <QDialog>
#include <QLabel>
#include <QMouseEvent>
#include <QPixmap>
#include <QScrollBar>
namespace Ui {
class scrollarea;
}

class scrollarea : public QDialog
{
    Q_OBJECT

public:
    explicit scrollarea(QWidget *parent = 0);
    ~scrollarea();
    void mouseMoveEvent(QMouseEvent *);
    void mouseReleaseEvent(QMouseEvent*);
    void set_image(QPixmap *image);
    void show_image(QString name);
private:
    Ui::scrollarea *ui;
    QLabel *label;
};

#endif // SCROLLAREA_H
